Inspector: Plug a few leaks
authorTimm Bäder <mail@baedert.org>
Sun, 24 Jan 2016 07:01:36 +0000 (08:01 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 24 Jan 2016 07:01:36 +0000 (08:01 +0100)
gtk/inspector/css-node-tree.c
gtk/inspector/visual.c

index f1682cd8a3fd2343a041ef3a32ac9ccd7222e74f..88a6498e867518e5ff0ca4f53f1149f0356b1348 100644 (file)
@@ -637,10 +637,10 @@ gtk_inspector_css_node_tree_set_node (GtkInspectorCssNodeTree *cnt,
             g_string_append (s, " ");
           g_string_append (s, strv[i]);
         }
-      g_strfreev (strv);
     }
 
   gtk_label_set_label (GTK_LABEL (cnt->priv->css_node_info), s->str);
+  g_strfreev (strv);
   g_string_free (s, TRUE);
 }
 
index 9f2622409870acf824d73c552e0a9ea015430efb..1f969cd098839a11c52ee00725209168415e81c7 100644 (file)
@@ -218,6 +218,8 @@ fill_gtk (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static gchar*
@@ -324,6 +326,8 @@ fill_icons (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static void
@@ -384,6 +388,8 @@ fill_cursors (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static void